package  SEApp.components.propertyCtrls {
	import UIFree.controls.uif_label;
	import UIFree.uif_component;
	
	import flash.events.MouseEvent;
	
	public class c_comboboxItem extends uif_label
	{
		public function c_comboboxItem(parent:uif_component, a_data: Object, ax:int=0, ay:int=0, awidth:int=0, aheight:int=0, styleClass:String='') {
			super(parent, ax, ay, awidth, aheight, styleClass);
			_data = a_data;
		}
		
		override protected function setData(value:Object):void {
			super.setData(value);
			text = (value is String)?(value as String):value.caption;
		}
		
		override protected function listenEvents():void {
			addEventListener(MouseEvent.MOUSE_OVER, doOver);
			addEventListener(MouseEvent.MOUSE_OUT, doOut);
		}
		
		protected function doOver(e: MouseEvent): void {
			fx('light', light, 2, null, 50, 100).start();
		}
		
		protected function doOut(e: MouseEvent): void {
			fx('light', light, 1).start();
		}
	}
}